package com.whut.monitor.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author CFlower
 * 2017/3/31
 * 补偿器实体-对应数据库表
 */
@Entity
@Table(name = "t_compensator")
public class CompensatorEntity {

    // 补偿器ID
    private Integer compensatorId;
    // 补偿器名
    private String compensatorName;
    // 编号
    private String compensatorNum;
    // 出厂日期
    private Date productDate;
    // 公司
    private String company;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getId() { return compensatorId; }
    public void setId(Integer id) {
        this.compensatorId = id;
    }

    @Column(name="compensator_name")
    public String getCompensatorName() {
        return compensatorName;
    }
    public void setCompensatorName(String compensatorName) {
        this.compensatorName = compensatorName;
    }

    @Column(name="compensator_num")
    public String getCompensatorNum() {
        return compensatorNum;
    }
    public void setCompensatorNum(String compensatorNum) {
        this.compensatorNum = compensatorNum;
    }

    @Column(name="product_date")
    public Date getProductDate() {
        return productDate;
    }
    public void setProductDate(Date productDate) {
        this.productDate = productDate;
    }

    @Column(name="company")
    public String getCompany() {
        return company;
    }
    public void setCompany(String company) {
        this.company = company;
    }


}
